export class ResourceExtensionInformation {
    rId!: number
    linkPrice!: number
    downloadLocallyPrice!: number
    hasDownloadLocally!: string

     static fromResourceExtensionInformation(data: any): ResourceExtensionInformation {
        const info = new ResourceExtensionInformation()
        info.rId = data.rId
        info.linkPrice = data.linkPrice
        info.downloadLocallyPrice = data.downloadLocallyPrice
        info.hasDownloadLocally = data.hasDownloadLocally ?? ''
        return info
    }
    constructor() {
        this.rId = -1
        this.linkPrice = -1
        this.downloadLocallyPrice = -1
        this.hasDownloadLocally = ''
    }
}